import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { LoginForm } from './components/Login';
import Home from './components/Home';
import 'antd/dist/antd.css';

export default class App extends Component{

    constructor(props){
        super(props);
    }

    callback = (data) =>{
        for (let [key, value] of data.entries()) {
            this.setState({ [key]: value });
        }
    }

    render(){
        return(
            <div className="box">
                { this.props.children }
            </div>
        );
    }
}